<template>
	<view>
		<uni-popup borderRadius='20px 20px 20px 20px' ref="popupQr" background-color="#fff">
			<view class="popup-content bb">
				<view>
					<image show-menu-by-longpress :src="$timer.ensureUrl(myCompany.wechat_big)"
						mode="widthFix" style="width: 100%;height: 100vh;"></image>
				</view>
				<view @click="closeOpenQr" class="pos-a closeImage" style="right: 20rpx;top: 30rpx;">
					<text>关闭</text>
				</view>
			</view>
		</uni-popup>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				customTabShow: true,
			}
		},
		computed:{
			myCompany(){
				return this.$store.state.extend.myCompany;
			}
		},
		methods: {
			popupQr(type){
				this.$refs.popupQr.open(type);
			},
			closeOpenQr() {
				this.$refs.popupQr.close();
				this.$emit('close')
			},
		}
	}
</script>

<style scoped lang="scss">
	.closeImage {
		color: white;
		width: 100rpx;
		height: 60rpx;
		line-height: 60rpx;
		background-color: #21252B;
		text-align: center;
		border-radius: 20rpx;
	}
	
	.popup-content {
		position: relative;
		height: 100vh;
		width: 100%;
	}
</style>